-
Notifications
You must be signed in to change notification settings - Fork 227
Ensures highlighting of all nodes that are spoken #1349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1349 +/- ##
==========================================
Coverage 86.72% 86.72%
==========================================
Files 337 337
Lines 84145 84145
Branches 3140 4769 +1629
==========================================
Hits 72971 72971
+ Misses 11174 11151 -23
- Partials 0 23 +23 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Can you provide one of the examples that you have where the additional highlighting is necessary? I don't remember the format we looked at together last week. |
The problem came out of the MJ issue 3419. Examples are there too. E.g., \int _{C} {\mathbb{P}f}\mathcal{M} |
I'm getting errors from SRE. Do I need an updated copy? If so, can you say what branch I should use? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there are some issues to consider, here, before proceeding with this. See my comments below.
I incorporated your comments. PTAL. |
The PR ensures that all formula elements that are spoken are highlighted. This is necessary when parts of the formula are not in the same DOM subtree that is rooted by the node that contains the speech.
The idea is to compute the set difference between the nodes in the subtree and the id numbers given in the semantic structure of the elements. For this we add a
subtrees
map that is initially populated with the information fromdata-semantic-structure
.Currently nodes are highlighted separately. What is still missing is a combined highlighting as discussed last week. I tried a couple of ideas, but none looked good in particular if there are also linebreaks in the expression.